﻿// JavaScript Document

		
		
lastScrollY=0; 
			
			var InterTime = 1;
			var maxWidth=0;
			var minWidth=0;
			var numInter = 8;
			
			var BigInter ;
			var SmallInter ;

			var o = document.getElementById("customService");
				var i = parseInt(o.style.right);
				function Big()
				{
				    if (parseInt(o.style.right) < maxWidth) {
					    i = parseInt(o.style.right);
						i += numInter;	
						o.style.right=i+"px";	
						if(i==maxWidth)
							clearInterval(BigInter);
					}
				}
				function toBig()
				{
					clearInterval(SmallInter);
					clearInterval(BigInter);
					BigInter = setInterval(Big, InterTime);
					document.getElementById("service_body").style.display = "block";
				}
				function Small()
				{
					if(parseInt(o.style.right)>minWidth)
					{
					    i = parseInt(o.style.right);
						i -= numInter;
						o.style.right=i+"px";
						
						if(i==minWidth)
							clearInterval(SmallInter);
					}
				}
				function toSmall()
				{
					clearInterval(SmallInter);
					clearInterval(BigInter);
					SmallInter = setInterval(Small, InterTime);
					document.getElementById("service_body").style.display = "none";
					
				}